import { getList } from '@/api/blog.js'
export default {
  namespaced: true,
  state: ()=>({
    list:[]
  }),
  mutations: {
    SET_LIST(state, data) {
      state.list = data
    }
  },
  actions: {
    async GET_LIST({ commit }, params) {
        let data = await getList(params)
        commit('SET_LIST', data.data)    
    }
  },
  getters: {}
}
